Basic4GL
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
Basic4GL (B4GL; from Basic for openGL) is an interpreted, open source version of the BASIC programming language which features support for 3D computer graphics using OpenGL. While being interpreted, it is also able to compile programs on top of the virtual machine to produce standalone executable programs.
Basic4GL features the usual commands that you would expect to find in a version of BASIC such as...
• PRINT
• INPUT
• GOSUB
It also includes a few features that C programmers will be familiar with, such as support for pointers, structures and most importantly the entire OpenGL v1.1 API.
Contents
• History
• Versions
• Versions
• Features
• Plugins
• See also
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
History
Tom Mulgrew created Basic4GL from a desire to be able to run OpenGL functions easily and quickly,cite-ref-history-1-0[1] without all of the setup normally required in a language such as c++ and be more stable. He built a virtual machine similar to one used at his workplace. It started simply, with few OpenGL functions and minimal other functionality. The first version was relatively popular.cite-ref-history-1-1[1]
Versions
2.3.0 - Added networking capabilitycite-ref-2[2]
2.3.5 - Support for code compilation at runtimecite-ref-3[3]
2.4.2 - Changed sound system from OpenAL to Audierecite-ref-4[4]
2.4.3 - Support for Plugin DLLs addedcite-ref-5[5]
2.5.0 - Support for functions addedcite-ref-6[6]
2.5.8 - Support for hexadecimal numberscite-ref-7[7]
Versions
Basic4GL for Linux
Basic4GL was being ported over to Linux. The major difference between Basic4GL for Windows and the attempted Linux version is that it uses the SDL library rather than Windows specific libraries to initialize an OpenGL enabled window.
Basic4GL for Mac
A version for Mac OS was also under development. No working versions have been released.
Basic4SDL
Basic4Games
A successor to Basic4GL was also being developed dubbed "Basic4Games". Only one preview has been released.
Basic4GLj
Example code
Dim A
For A = 0 To 4
Printr "Hello "; A
Next
When the above code is entered into Basic4GL and executed, the following is output to the monitor screen.
Hello 0
Hello 1
Hello 2
Hello 3
Hello 4
Features
Support for sound and music
Functions and subroutines
When Basic4GL was first released it had no support for functions. That changed however when version 2.5.0 was released in January 2008. Now Basic4GL has full support for local variables, parameters, forward declaration and recursion.
Plugins
In August 2006 support for Plugin DLLs was added to Basic4GL. This means that you can write your own commands and include them in the Basic4GL programming language, all you need is a C++ Compiler. Plugins expand the capabilities of Basic4GL and many exist, providing such things as physics engines, TrueType Fonts, collision detection etc.
SourceForge
Both Basic4GL for Windows and the new Linux version have been placed on SourceForge, this means that people are free to develop the languages and make improvements to them.
See also
References
cite-note-history-11. ↑ citerefmulgrewMulgrew, Tom. "Any Questions?". ProBoards. Retrieved 14 June 2011.
cite-note-22. ↑ citerefmulgrewMulgrew, Tom. "v2.3.0 released". ProBoards. Retrieved 14 June 2011.
cite-note-33. ↑ citerefmulgrewMulgrew, Tom. "Version 2.3.5 released". ProBoards. Retrieved 14 June 2011.
cite-note-44. ↑ citerefmulgrewMulgrew, Tom. "Basic4GL v2.4.2 is released". ProBoards. Retrieved 14 June 2011.
cite-note-55. ↑ citerefmulgrewMulgrew, Tom. "Basic4GL v2.4.3 is released". ProBoards. Retrieved 14 June 2011.
cite-note-66. ↑ citerefmulgrewMulgrew, Tom. "Basic4GL v2.5.0". ProBoards. Retrieved 14 June 2011.
cite-note-77. ↑ citerefmulgrewMulgrew, Tom. "Home". Archived from the original on 21 July 2011. Retrieved 18 July 2011.
cite-note-88. ↑ citerefwybiral2007Wybiral (2007-02-18). "Basic". Ubuntu Forums. Basic4SDL: It's mostly an OpenGL+SDL playground for 3d graphics and such... But it works on linux and stays pretty true to the BASIC syntax.
cite-note-99. ↑ citerefproven2023Proven, Liam (2023-03-28). "Nostalgic for VB? BASIC is anything but dead". The Register. Retrieved 2023-09-27. While Basic4GL has gone quiet, a port of it to the JVM, Basic4GLj is in active development.
External links
• Official website
• "Basic4GL for Linux". Archived from the original on September 19, 2012. Retrieved January 3, 2007.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
• "Basic4GL wikispace". Archived from the original on September 14, 2008. Retrieved January 4, 2007.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
• Basic4Games on SourceForge
• Basic4SDL - Linux on SourceForge
• Audiere Audio System on SourceForge